home *** CD-ROM | disk | FTP | other *** search
/ HamCall (October 1991) / HamCall (Whitehall Publishing)(1991).bin / bcast / bcstcble / vth.bas < prev    next >
BASIC Source File  |  1990-10-14  |  1KB  |  31 lines

  1. 10    ' VTH.BAS will calculate an op amp's input dynamic range.
  2. 20    ' Inputs are slew rate in volts/usec, and gain-bandwidth product, in mHz
  3. 30    ' W. Jung   07/11/1987
  4. 40    ' 
  5. 50    ' Reference: W. Jung, AUDIO IC OP AMP APPLICATIONS, 3d EDITION, 1986
  6. 60    ' (second chapter)
  7. 70    ' H.W. Sams & Co., Indianapolis IN, 46268 (1-800-428-3602)
  8. 80    '
  9. 90    'CLS
  10. 100   PRINT:PRINT:PRINT
  11. 110   PRINT "This program calculates an op amp input dynamic range, 'Vth'."
  12. 120   PRINT:PRINT "Vth will be in volts when SR (slew rate) is in V/us and "
  13. 130   PRINT "GBP (gain-bandwidth product) is in megahertz.  (It is"
  14. 140   PRINT "assumed that the op amp in question has a -6dB/octave rolloff)"
  15. 150   PRINT
  16. 160   PRINT "For example, the popular 356 op amp has a SR of 12V/us,"
  17. 170   PRINT "and a GBP of 4.5mHz.  What is its Vth?  "
  18. 180   PRINT:PRINT "Answer and see!"
  19. 190   PRINT:PRINT:PRINT:PRINT:PRINT
  20. 200   INPUT "Op amp slew rate (V/us) "; A
  21. 210   INPUT "Op amp GBP (mHz)        "; B
  22. 220   PI=3.14
  23. 230   C=(A/B)/(2*PI)
  24. 240   PRINT:PRINT:PRINT
  25. 250   PRINT"This device's Vth is";:PRINT USING " #.##";C;:PRINT " volts"
  26. 260   PRINT:PRINT:PRINT:PRINT:PRINT:PRINT
  27. 270   INPUT"AGAIN ";A$:IF LEFT$(A$,1)="Y" THEN GOTO 10 ELSE END
  28. 300   ' USED WITH PERMISSION OF AV-SYN (TBS) BBS
  29. 310   ' PHONE 404/320-6202
  30. 320   ' BILL TULLIS IS SYSOP
  31. JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ